#import <UIKit/UIKit.h>

#import "framework/FWPlugin.h"
#import "framework/FWApplicationDelegate.h"

#import "PIPlugin.h"


@interface PITodoPlugin : PIPlugin <FWApplicationDelegate>

@property (nonatomic, retain) NSArray* contexts;
@property (nonatomic, retain) NSString* contextsString;


// Object management
- (void)dealloc;

// Toolbar buttons
- (void)toggleMenuClicked:(FWBarButtonItem*)sender;
- (void)toggleDetailsClicked:(FWBarButtonItem*)sender;
- (void)disableContextsClicked:(FWBarButtonItem*)sender;
- (void)locationContextClicked:(FWBarButtonItem*)sender;
- (void)manualContextClicked:(FWBarButtonItem*)sender;
- (void)newTodoClicked:(FWBarButtonItem*)sender;

// Callback when badge updated
- (void)badgeUpdate:(NSNotification*)notif;

@end
